package model;

import java.util.UUID;
import model.XenNetworkInterface;

/**
 * @author Dumella De Rosa Gennaro
 *
 */
public class XenNode extends Node{
	
	
	/**
	 * Gestore della connessione tramite Libvirt
	 */
//	private LIBVIRTConnectionHandler handler;
	
	/**
	 * @param name
	 * @param id
	 */
	public XenNode(String name, UUID id)
	{
		super(name,id);
//		try {
//			handler = LIBVIRTConnectionHandler.createLIBVIRTConnectionHandler("xen","ssh","root","192.168.74.16",null,null, null, new ConnectAuthDefault(), 0);
//		} catch (LibvirtException e) {
//			e.printStackTrace();
//		}
	}
	

	
	public void addInterface(XenNetworkInterface netInterface) 
	{
		super.addInterface(netInterface);
//		return handler.getXmlDescription(netInterface.getInterfaceType().toString(),netInterface.getMacAddress(),
//				netInterface.getSourceBridge(),netInterface.getScriptPath(),
//				netInterface.getTargetDevice(),null,null,0);
	}



}
